﻿using System.Collections.Generic;
using System.IO;

namespace CMWVS.Core.Commands
{
    public class RunCommandParameters
    {
        #region Constructor

        private RunCommandParameters()
        {
        }

        public RunCommandParameters(IEnumerable<Item> items)
        {
            this.Items = items;
        }

        #endregion Constructor

        public class Item
        {
            #region Constructor

            private Item()
            {
            }

            public Item(string toRun, string parameters, DirectoryInfo workingDir)
            {
                this.ToRun = toRun;
                this.Parameters = parameters;
                this.WorkingDirectory = workingDir;
            }

            #endregion Constructor

            public string ToRun { get; set; }

            public string Parameters { get; set; }

            public DirectoryInfo WorkingDirectory { get; set; }
        }

        public IEnumerable<Item> Items
        {
            get;
            private set;
        }
    }
}